package com.license.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.text.MessageFormat;
import java.util.HashMap;
import java.util.Map;

@Controller
public class LoginController {

    @GetMapping("/check")
    @ResponseBody
    public Map<String,Object> check(){
        Map<String,Object> result = new HashMap<>(1);
        //模拟登录
        System.out.println("模拟登录流程");
        result.put("code",200);

        return result;
    }


}
